<?php
/**
 * gpa_demo Description
 * @package 
 * @name imagecommentlike
 * @filesource image-comment-like.php
 * @author Meta Sanjaya
 */

if(count($_POST) && isset($_SESSION['user']['user_id'])) {
    $post = $_POST;
    $user = $_SESSION['user'];

    $db->query("INSERT INTO #_comment_users_comments_like_by_users SET comment_id='".$post['cid']."', user_id='".$user['user_id']."'");
    echo "GOOD Comment!";
}

?>
